#!/usr/bin/env python3
# -*-coding: utf-8 -*-


from tkinter import *
import logzero

class TestShow(object):
    """docstring for TestShow"""
    def __init__(self):
        window = Tk()
        window.title('test show')
        self.scrollbar = Scrollbar(window)
        self.scrollbar.pack(side=RIGHT, fill=Y)
        self.listbox = Listbox(window)
        self.listbox.pack()

        for i in range(100):
            self.listbox.insert(END, i)

        # bind listbox to scrollbar
        self.listbox.config(yscrollcommand=self.scrollbar.set)
        self.scrollbar.config(command=self.listbox.yview)

        window.mainloop()